package com.wpre.lotterysystem.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created with IntelliJ IDEA.
 * Description:人员状态
 * User: LianBao
 * Date: 2024-12-21
 * Time: 18:46
 */
@AllArgsConstructor
@Getter
public enum ActivityUserStatusEnum {
    INIT(1, "初始化"),
    DONE(2, "人员已被抽取");


    private final Integer code;
    private final String message;

    public static ActivityUserStatusEnum forName(String name) {
        for (ActivityUserStatusEnum statusEnum : ActivityUserStatusEnum.values()) {
            if (statusEnum.name().equalsIgnoreCase(name)) {
                return statusEnum;
            }
        }
        return null;
    }
}
